﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Linq.Expressions;

namespace Htse.Blue.Helpers
{
	public class DataGridAjaxDeleteColumn<T> : DataGridDeleteColumnBase<T>
	{
		public string ConfirmMessage { get; private set; }

		public string DivToUpdate { get; private set; }

		public DataGridAjaxDeleteColumn(
			string text,
			string action,
			string controller,
			Expression<Func<T, string>> key,
			string confirmMessage,
			string divToUpdate)
			: this(text, action, controller, key, confirmMessage, divToUpdate, null)
		{
		}

		public DataGridAjaxDeleteColumn(
			string text,
			string action,
			string controller,
			Expression<Func<T, string>> key,
			string confirmMessage,
			string divToUpdate,
			int? width)
			: base(text, action, controller, key, width)
		{
			ConfirmMessage = confirmMessage;
			DivToUpdate = divToUpdate;
		}
	}
}
